<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" >
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>BaseWeb2.0</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="shortcut icon" href="/img/favicon.ico">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/adminLTE/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/fonts/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="/fonts/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/adminLTE/dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="/adminLTE/dist/css/skins/_all-skins.min.css">
  <!-- 使用hplus的基础上，加入的一些样式修改 -->
  <link href="css/custom-style/base-css.css" rel="stylesheet" class="base-css">

  <style>
  	#table {
   		font-size: 12px; 
   		background-color: red;
	}
  </style>
</head>
<!-- ADD THE CLASS fixed TO GET A FIXED HEADER AND SIDEBAR LAYOUT -->
<!-- the fixed layout is not compatible with sidebar-mini -->
<body class="hold-transition skin-blue fixed sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="#" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>B</b>aseWeb</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>Base Web</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <strong>&nbsp;&nbsp;&nbsp;<span class="navbar-minimalize minimalize-styl-2" style="color:white" id="page-title"></span></strong>
      </a>

     

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less 消息-->
          <li class="dropdown messages-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-envelope-o"></i>
              <span class="label label-success">100</span>
            </a>
          </li>
          <!-- Notifications: style can be found in dropdown.less 通知-->
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning">10</span>
            </a>
          </li>
          <!-- Tasks: style can be found in dropdown.less 任务 -->
          <li class="dropdown tasks-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-flag-o"></i>
              <span class="label label-danger">9</span>
            </a>
          </li>
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
         
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="/adminLTE/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              <span class="hidden-xs">Hi, <%= user.getUserName()%></span>
            </a>  
          </li>
          
           <li>
            <a  href="<%=basePath %>/login/logout.do" title="<spring:message code='index.signout' />">
              <i class="fa fa-power-off  fa-lg"></i>
            </a>
          </li>
         
        </ul>
      </div>
    </nav>
  </header>

  <!-- =============================================== -->

  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
     
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        
        
      <shiro:hasAnyPermissions name="Admin:User,Admin:Role,Admin:Permission,Admin:Dict">
        <li class="treeview">
          <a href="#">
            <i class="fa fa-dashboard text-aqua"></i> <span>	<spring:message code="system.admin" /></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
			  <shiro:hasPermission1 name="Admin:User">
                  <li>
                      <a class="J_menuItem" href="<%=basePath %>/user/toPage.do"  target="menuFrame"><i class="fa fa-user"></i><spring:message code="system.admin.user" /></a>
                  </li>
             </shiro:hasPermission1>
             <shiro:hasPermission1 name="Admin:Role">
                  <li>
                      <a class="J_menuItem" href="<%=basePath %>/role/toPage.do"  target="menuFrame"><i class="fa fa-users"></i><spring:message code="system.admin.role" /></a>
                  </li>
              </shiro:hasPermission1>
              <shiro:hasPermission1 name="Admin:Permission">
                  <li>
                      <a class="J_menuItem" href="<%=basePath %>/permission/toPage.do"  target="menuFrame"><i class="fa fa-cog"></i><spring:message code="system.admin.permission" /></a>
                  </li>
              </shiro:hasPermission1> 
              <shiro:hasPermission1 name="Admin:Dict">   
                  <li>
                      <a class="J_menuItem" href="<%=basePath %>/dict/toListPage.do"  target="menuFrame"><i class="fa fa-list"></i><spring:message code="system.admin.dic" /></a>
                  </li> 
              </shiro:hasPermission1>   
              <shiro:hasPermission1 name="Admin:File">
                <li>
                      <a class="J_menuItem" href="<%=basePath %>/fileAdmin/toListPage.do"  target="menuFrame"><i class="fa fa-file"></i><spring:message code="system.admin.file" /></a>
                </li> 
             </shiro:hasPermission1>
            <shiro:hasPermission1 name="Admin:I18n">
                <li>
                      <a class="J_menuItem" href="<%=basePath %>/i18n/toListPage.do"  target="menuFrame"><i class="fa fa-language"></i><spring:message code="system.admin.i18n" /></a>
                </li> 
             </shiro:hasPermission1>
          </ul>
         </li>
       </shiro:hasAnyPermissions>   
      

        <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
        <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
        <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- =============================================== -->

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" >
    <!-- Main content -->
    <section class="content" >
 	 <!--  <iframe id="frame_content"  name="menuFrame" src="" frameborder="0"  width="100%"  onload="this.height=100"></iframe>  -->
 	 
 	 <iframe id="frame_content"  name="menuFrame" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:88%;width:100%;top:0px;left:0px;right:0px;bottom:0px" height="88%" width="100%">
 	 </iframe>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <footer class="main-footer" >
    <div class="pull-right">
       © 2015-2017 
    </div>
    <p></p>
  </footer>
</div>
<!-- ./wrapper -->
<!-- jQuery 2.2.3 -->
<script src="<%=basePath %>/adminLTE2/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="<%=basePath %>/adminLTE2/bootstrap/js/bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="<%=basePath %>/adminLTE2/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="<%=basePath %>/adminLTE2/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="<%=basePath %>/adminLTE2/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="<%=basePath %>/adminLTE2/dist/js/demo.js"></script>


<script type="text/javascript">

$(document).ready(function(){

	$(".J_menuItem").click(function(){
		$("#page-title").text($(this).text());
	});
	
});

function reinitIframe(){
		var iframe = document.getElementById("frame_content");
		try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var divHeight  = document.getElementById("content-wrapper").scrollHeight;
		
		var height = Math.max(bHeight, dHeight);
		//height = Math.max(height, divHeight);
		iframe.height =  height;
		}catch (ex){}
		}
window.setInterval("reinitIframe()", 200);

</script>
</body>
</html>


